.NET Framework Class Library |
OrderablePartitioner<(Of <(TSource>)>)..::.GetDynamicPartitions Method |
OrderablePartitioner<(Of <(TSource>)>) Class See Also Send Feedback |
Creates an object that can partition the underlying collection into a variable number of
partitions.
Namespace:
System.Collections.Concurrent
Assembly:
System.Threading (in System.Threading.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Overrides Function GetDynamicPartitions As IEnumerable(Of TSource) |
C# |
---|
public override IEnumerable<TSource> GetDynamicPartitions() |
Return Value
An object that can create partitions over the underlying data source.Remarks
The returned object implements the IEnumerable<(Of <(TSource>)>) interface. Calling GetEnumerator on the object creates another partition over the sequence.
The default implementation provides the same behavior as GetOrderableDynamicPartitions()()() except that the returned set of partitions does not provide the keys for the elements.
The GetDynamicPartitions()()() method is only supported if the SupportsDynamicPartitions property returns true.
Exceptions
Exception | Condition |
---|---|
System..::.NotSupportedException | Dynamic partitioning is not supported by this partitioner. |